﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ds.DataBase.Model
{
    public class MyKaoHeBiao_two
    {

        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int twoid { set; get; }
        public int mbid { set; get; }
        /// <summary>
        /// 工作计划为上报教师自主填写，绩效考核为系统从考核模板复制过来
        /// </summary>
        public string mbnr { set; get; }
        /// <summary>
        /// 是否可编辑，用来判断是不是系统自带的固定项 
        /// </summary>
        public bool IsEdit { set; get; }
        /// <summary>
        /// 分值
        /// </summary>
        public decimal fz { set; get; }
        /// <summary>
        /// 顺序
        /// </summary>
        public int sx { set; get; }
        public string htmlstr { set; get; }
        /// <summary>
        /// 总分，最后合分实用
        /// </summary>
        public decimal zf { set; get; }
        /// <summary>
        /// 工作计划开始时间
        /// </summary>
        public DateTime gzjhkssj { set; get; }
        /// <summary>
        /// 工作标准
        /// </summary>
        public string gzbz { set; get; }
        /// <summary>
        /// 工作计划完成情况
        /// </summary>
        public string gzjhwcqk { set; get; }
        /// <summary>
        /// 工作计划完成时间
        /// </summary>
        public DateTime gzjhwcsj { set; get; }
        /// <summary>
        /// 工作计划完成时间描述
        /// </summary>
        public string gzjhwcsjstr { set; get; }
        /// <summary>
        /// 备注->用来记录插入子项目的操作员
        /// </summary>
        public string bz { set; get; }
        public virtual MyKaoHeBiao_one MyKaoHeBiaoOne { set; get; }
        public virtual ICollection<MyKaoHeBiao_twoPingFen> MyKaoHeBiaoTwoPingFens { set; get; }
        public virtual ICollection<MyKaoHeBiao_twoFuJians> MyKaoHeBiaoTwoFuJianses { set; get; }
        /// <summary>
        /// 自评分
        /// </summary>
        public decimal zp { get; set; }
        #region 新增
        /// <summary>
        /// 工作承担人Id
        /// </summary>
        public Guid gzcdrid { set; get; }
        /// <summary>
        /// 工作承担人姓名
        /// </summary>
        public string gzcdr { set; get; }
        /// <summary>
        /// 重要程度
        /// </summary>
        public int zycd { set; get; }
        /// <summary>
        /// 相关工作集
        /// </summary>
        public virtual ICollection<xiangguangongzuo> xiangguangongzuoji { set; get; }
        /// <summary>
        /// 全年第几周
        /// </summary>
        public int zhou { set; get; }
        /// <summary>
        /// 来源ID
        /// </summary>
        public int lyid { set; get; }
        /// <summary>
        /// 来源人
        /// </summary>
        public string lyxingming { set; get; }
        /// <summary>
        /// 任务类型
        /// </summary>
        public 任务类型 twolx { set; get; }
        public enum 任务类型
        {
            系统 = 1,
            上系指派 = 2,//弃用
            他人指派 = 3,
            继承未完成 = 4,
            自己新建立 = 5
        }
        /// <summary>
        /// 累计次数
        /// </summary>
        public int ljcs { set; get; }
        /// <summary>
        /// 是否完成
        /// </summary>
        public bool Iswc { set; get; }
        #endregion
    }

}
